#!/bin/bash

# AI-CRM 项目停止脚本

echo "================================"
echo "  AI-CRM 停止脚本"
echo "================================"
echo ""

echo "正在停止服务..."

if docker compose version &> /dev/null; then
    docker compose down
else
    docker-compose down
fi

if [ $? -eq 0 ]; then
    echo ""
    echo "服务已成功停止"
else
    echo ""
    echo "错误: 服务停止失败"
    exit 1
fi

